package com.acme.javaschool.intense.sems.sem3logging;

public class ConsoleAppender extends Appender {

    public ConsoleAppender (int bufferSize) {
        super(bufferSize, AppenderType.CONSOLE);
    }

    @Override
    protected void write(Object... message) {
        if (message != null) {
            for (Object part : message) {
                System.out.print(part);
            }
            System.out.println();
        }
    }
}
